import requests
from config import url_cloud,headers_web

class AppointmentApplication:
    def __int__(self):
        self.url = url_cloud
        self.headers = headers_web

    @classmethod
    def post_ppointmentDateCapacity(cls,url_cloud:str,headers=headers_web,params= None,json=None):
        '''
        Summary: 获取实验位预约容量信息
        Description :1.云课堂学生端-获取实验位可预约容量使用
        :param url:
        :param headers:
        :param params:
        :param json:
        :return:
        '''
        url = url_cloud + "/teachinglaboratoryapi/v1/laboratorySeat/appointmentDateCapacity"
        r = requests.post(url=url,headers=headers,params=params,json=json)
        return r